<template>
	<div>
		<el-popover
            placement="top"
            width="200"
            v-model="visible">
            <el-input v-model="assetName" ></el-input>
            <div style="text-align: right; margin: 10px">
                <el-button size="mini" @click="close">取消</el-button>
                <el-button type="primary" size="mini" @click="updateAssetName()">确定</el-button>
            </div>
            <el-link slot="reference">{{ row.name }}</el-link>
        </el-popover>
	</div>
</template>
<script>
	export default {
		name:'',
		props: {
			row: {},
		},
		data() {
			return {
				visible: false,
				assetName: ''
			}
		},
		created() {
			var that = this;
			that.assetName = that.row.name;
		},
		methods: {
			close() {
				let that = this;
				that.selectOrgId = that.organizationId;
				that.visible = false;
			},
			updateAssetName() {
				var that = this;
				var assetId = that.row.id;
			}
		}
	}
</script>